package com.tarena.micro.service.order.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tarena.micro.service.pojo.po.OrderPO;
import org.apache.ibatis.annotations.Insert;

public interface OrderMapper extends BaseMapper<OrderPO> {
    @Insert("INSERT INTO order_tbl (id,order_sn, user_id, product_code, count, total_money)\n" +
            "VALUES (#{id}, #{orderSn}, #{userId}, #{productCode}, #(count),#{totalMoney});")
    public int addOrder(OrderPO po);
}
